# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-breathe
_pkgname=breathe
pkgver=4.35.0
pkgrel=3
pkgdesc="ReStructuredText and Sphinx bridge to Doxygen"
url="https://breathe.readthedocs.org/"
arch="noarch"
license="BSD-3-Clause-Clear"
depends="python3 py3-sphinx doxygen"
makedepends="py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/breathe-doc/breathe/archive/v$pkgver.tar.gz
	test_renderer.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
76e36fceb89c21e2c62471a37b856f8e7077f946ca8ebffdd068297d7d447ba4f42f8f9d91e231f7a181d7dba2cb8650479f35f8bef342184e5ccbd3dd951f91  py3-breathe-4.35.0.tar.gz
daf9aec441cd3708978b6cc292ec46cde28b4df441ae5b8c9514200f647bbb60010e50125665a2723e467a48123ac991d36ddaf07d59b34fcb680a3d820cded7  test_renderer.patch
"
